package com.wedistudio.slidesprovider;

import com.wedistudio.android.framework.json.JSonObject;
import com.wedistudio.android.framework.service.ServiceRequest;

public class SlideTag extends JSonObject<SlideTag> implements ServiceRequest {
	String source;
	String tag;
	Integer count;

	static public SlideTag create(String source, String tag) {
		return new SlideTag(source, tag);
	}

	private SlideTag(String source, String tag) {
		this.tag = tag;
		this.source = source;
	}

	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	@Override
	public boolean equals(Object o) {
		if (o instanceof SlideTag)
			return tag.equals(((SlideTag) o).getTag());
		return false;
	}

	@Override
	public int hashCode() {
		return tag.hashCode();
	}

	private Slides slides;

	public Slides getSlides() {
		return slides;
	}
}
